Skip to content

🌱 update controller runtime and cluster-api to newest version #1628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 35 commits into
base: main
Choose a base branch
from

Conversation

guettli
Copy link
Collaborator

@guettli guettli commented Jul 10, 2025

@github-actions github-actions bot added size/L Denotes a PR that changes 200-800 lines, ignoring generated files. area/hack Changes made in the hack directory area/test Changes made in the test directory area/code Changes made in the code directory area/api Changes made in the api directory labels Jul 10, 2025
@github-actions github-actions bot added the area/github Changes made in the github directory label Jul 10, 2025
guettli and others added 14 commits July 10, 2025 13:55
…1635)

build(tools): make helm and hcloud downloads platform-agnostic

Replace hardcoded `linux-amd64` architecture with dynamic `$(go env GOOS)-$(go env GOARCH)` to support multiple platforms and architectures during tool installation.

Signed-off-by: Tomas Dabašinskas <[email protected]>
…1637)

* 🌱 Add SkipCreatingHetznerSecretInWorkloadCluster to hetznercluster_controller

SkipCreatingHetznerSecretInWorkloadCluster indicates whether the Hetzner secret should be created in the workload cluster. By default the secret gets created, so that the ccm (running in the wl-cluster) can use that secret. If you prefer to not reveal the secret in the workload cluster, you can set this to value to false, so that the secret is not created. Be sure to run the ccm outside of the workload cluster in that case, e.g. in the management cluster.

Closes #1636
@cgroschupp
Copy link

wrong golang version in ghcr.io/syself/caph-builder:1.0.24

podman run -ti --entrypoint /usr/local/go/bin/go --rm ghcr.io/syself/caph-builder:1.0.24 version
go version go1.23.7 linux/amd64

@cgroschupp
Copy link

I think I've found something:
E0731 12:12:00.927565 38698 controller.go:347] "Reconciler error" err="failed to patch HetznerBareMetalMachine baremetalmachine-reconciler-xpjps/bm-machine-host-testing: HetznerBareMetalMachine.infrastructure.cluster.x-k8s.io \"bm-machine-host-testing\" is invalid: [status.addresses[0].address: Invalid value: \"\": addresses[0].address in body should be at least 1 chars long, status.addresses[1].address: Invalid value: \"\": addresses[1].address in body should be at least 1 chars long]" controller="hetznerbaremetalmachine" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="HetznerBareMetalMachine" HetznerBareMetalMachine="baremetalmachine-reconciler-xpjps/bm-machine-host-testing" namespace="baremetalmachine-reconciler-xpjps" name="bm-machine-host-testing" reconcileID="a17b1463-965d-467b-a2ff-bd4683b753ae"

When I set the address (https://github.com/cgroschupp/cluster-api-provider-hetzner/blob/d2596bac2efadfcbdc92ac1f30cfa98e8fa5fdac/pkg/services/baremetal/baremetal/baremetal.go#L838) to a hardcoded value, for example '127.0.0.1', the test works.

@cgroschupp
Copy link

this is the fix 4735508 please pull from my branch.

@guettli
Copy link
Collaborator Author

guettli commented Jul 31, 2025

wrong golang version in ghcr.io/syself/caph-builder:1.0.24

podman run -ti --entrypoint /usr/local/go/bin/go --rm ghcr.io/syself/caph-builder:1.0.24 version
go version go1.23.7 linux/amd64

I am on that.

@guettli
Copy link
Collaborator Author

guettli commented Jul 31, 2025

this is the fix 4735508 please pull from my branch.

thank you!

I added some things, so errors in that part will fail earlier the next time. Please pull from my branch again.

@github-actions github-actions bot added size/XL Denotes a PR that changes 800-2000 lines, ignoring generated files. and removed size/L Denotes a PR that changes 200-800 lines, ignoring generated files. labels Jul 31, 2025
@guettli
Copy link
Collaborator Author

guettli commented Jul 31, 2025

hcloud e2e failed: 🌱 update controller runtime and cluster-api to newest version · syself/cluster-api-provider-hetzner@fe753d8

Will retry it.... Now I see

"failed to setup CSR controller: controller with name certificatesigningrequest already exists. Controller names must be unique to avoid multiple controllers with the same name."

I will look at this tomorrow.

@guettli
Copy link
Collaborator Author

guettli commented Aug 1, 2025

The bm e2e failed. There seems to be a problem with host bm-e2e-1724024.

2025-07-31T19:29:38.9002657Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (7s)
2025-07-31T19:30:24.1287948Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (54s)
2025-07-31T19:31:09.3557058Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (1m37s)
2025-07-31T19:31:54.5853118Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (2m23s)
2025-07-31T19:32:39.8132078Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (3m9s)
2025-07-31T19:33:25.0414392Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (3m54s)
2025-07-31T19:34:10.2705662Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (4m39s)
2025-07-31T19:34:55.4976409Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (5m23s)
2025-07-31T19:35:40.7278748Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (6m10s)
2025-07-31T19:36:25.9566830Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (6m55s)
2025-07-31T19:37:11.1854024Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (7m40s)
2025-07-31T19:37:56.4138236Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (8m25s)
2025-07-31T19:38:41.6432212Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (9m9s)
2025-07-31T19:39:26.8708975Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (9m55s)
2025-07-31T19:40:12.1009111Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (10m40s)
2025-07-31T19:40:57.3296488Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (11m25s)
2025-07-31T19:41:42.5567126Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (12m11s)
2025-07-31T19:42:27.7857021Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (12m56s)
2025-07-31T19:43:13.0117794Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (13m42s)
2025-07-31T19:43:58.2385280Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (14m26s)
2025-07-31T19:44:43.4666408Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (15m11s)
2025-07-31T19:45:28.6977846Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (15m58s)
2025-07-31T19:46:13.9258011Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (16m42s)
2025-07-31T19:46:59.1523206Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (17m27s)
2025-07-31T19:47:44.3810288Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (18m13s)
2025-07-31T19:48:29.6148833Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (18m58s)
2025-07-31T19:49:14.8406515Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (19m43s)
2025-07-31T19:50:00.0681162Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (20m28s)
2025-07-31T19:50:45.2967800Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (21m13s)
2025-07-31T19:51:30.5236715Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (21m58s)
2025-07-31T19:52:15.7534808Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (22m44s)
2025-07-31T19:53:00.9818372Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (23m30s)
2025-07-31T19:53:46.2121627Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (24m14s)
2025-07-31T19:54:31.4414119Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (25m0s)
2025-07-31T19:55:16.6688666Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (25m45s)
2025-07-31T19:56:01.8953344Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (26m31s)
2025-07-31T19:56:47.1232213Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (27m15s)
2025-07-31T19:57:32.3491150Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (28m0s)
2025-07-31T19:58:17.5781532Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (28m46s)
2025-07-31T19:59:02.8046785Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (29m31s)
2025-07-31T19:59:48.0325535Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (30m16s)
2025-07-31T20:00:33.2602206Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (31m1s)
2025-07-31T20:01:18.4892966Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (31m47s)
2025-07-31T20:02:03.7186909Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (32m31s)
2025-07-31T20:02:48.9484312Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (33m18s)
2025-07-31T20:03:34.1740790Z     ci16657903684-0hsb97 hetznerbaremetalhosts bm-e2e-1724024 Condition ProvisionSucceeded=False StillProvisioning "host (bm-e2e-1724024) is still provisioning - state \"registering\"" (34m3s)

Looks like it never reached the rescue system. I tried it by hand, and it worked. Strange.

I will start the bm-e2e test again.

Context: kubernetes-sigs/cluster-api#10784
We'll maintain them here for the time being, until we have conditions replacing these errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Changes made in the api directory area/code Changes made in the code directory area/github Changes made in the github directory area/hack Changes made in the hack directory area/test Changes made in the test directory size/XL Denotes a PR that changes 800-2000 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants